package com.simon.system.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.simon.system.model.Role;
import org.springframework.stereotype.Repository;

@Repository
public interface RoleMapper {

	int deleteByPrimaryKey(Integer id);

	int insert(Role record);

	int insertSelective(Role record);

	Role selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(Role record);

	int updateByPrimaryKey(Role record);
	
	List<Role> queryRoles(@Param("name") String name);
	
	List<Role> selectByPid(Integer pid);
	
	List<Role> selectRoles();
	
	Role getRoleByName(String name);
}